package com.easywan.service;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.easywan.dao.IRToolsName2BaseUsersDao;
import com.easywan.vo.RToolsName2BaseUsers;

public class RToolsName2BaseUsersService implements IRToosName2BaseUsersSerivce{
	@Autowired
	IRToolsName2BaseUsersDao toosNameUsersDao;
	@Transactional(value = "transactionManager",propagation = Propagation.REQUIRED,rollbackFor = Exception.class)
	public int insert(RToolsName2BaseUsers rtn2bu) {
		Date date = new Date();
		rtn2bu.setCreatetime(date);
		rtn2bu.setModifytime(date);
		return toosNameUsersDao.insert(rtn2bu);
	}

}
